home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
GRAPH_FO
/
(GRAPH
/
CGRAPHTE
/
CSELRECT.C
< prev
next >
Wrap
Text File
|
1991-02-09
|
972b
|
37 lines
/******************************************************************************
CSelRectTask.c
Implements the selection by drawing a rectangle. This is the default
behaviour of it's superclass. This one only implements the Do()
method.
SUPERCLASS = CGraphTask.c
Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
CIS 100016,1764; FidoNet 2:512/114
*******************************************************************************/
#include <MacTypes.h>
#include <Global.h>
#include "CSelRectTask.h"
void
CSelRectTask::EndTracking(Point *currPt, Point *prevPt, Point *startPt) {
inherited::EndTracking(currPt,prevPt,startPt);
Do();
}
/******************************************************************************
Do
Select all nodes that are inside the rect.
*******************************************************************************/
void
CSelRectTask::Do() {
Rect selRect;
GetRect(&selRect);
itsGraph->vertexList->Select(&selRect);
}